$OpenBSD: patch-CMakeLists_txt,v 1.5 2014/11/04 19:10:41 dcoppa Exp $
--- CMakeLists.txt.orig	Sun Apr 14 01:37:53 2013
+++ CMakeLists.txt	Tue Nov  4 16:07:08 2014
@@ -127,8 +127,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
 		set(CMAKE_BUILD_TYPE Release)
 	endif()
 	#
-	set(CMAKE_CXX_FLAGS_RELEASE "-O2")
-	set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
+	set(CMAKE_CXX_FLAGS_RELEASE "")
+	set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g")
 	set(CMAKE_CXX_FLAGS_DEBUG "-g")
 	set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
 	#
@@ -142,11 +142,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
 	#
 	set(CMAKE_CXX_FLAGS "-Wall ${GCC_EXTRA_OPTIONS} -pedantic -Wno-long-long ${CMAKE_CXX_FLAGS}")
 	#
-	add_custom_target(debuggable $(MAKE) clean
+	add_custom_target(debuggable ${MAKE} clean
 		COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ${CMAKE_SOURCE_DIR}
 		COMMENT "Adjusting settings for debug compilation"
 		VERBATIM)
-	add_custom_target(releasable $(MAKE) clean
+	add_custom_target(releasable ${MAKE} clean
 		COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
 		COMMENT "Adjusting settings for release compilation"
 		VERBATIM)
